﻿<%@ Page Language="C#" AutoEventWireup="true" %>
<%@ Assembly Name="WoltersKluwer.SPChainGang.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=13876dddec4575d6" %>
<%@ Import Namespace="Microsoft.SharePoint.Administration" %>
<%@ Import Namespace="Microsoft.SharePoint.Utilities" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%
string centralAdminPageUrl = SPUrlUtility.CombineUrl(SPAdministrationWebApplication.Local.Sites[0].Url,
                                              String.Format("/_admin/WK/SPChainGangWarden.aspx?SiteId={0}",
                                                            SPContext.Current.Site.ID));%>
<html>
<head>
<script type="text/javascript">
<!--
    function delayer() {
        window.location = "<%=centralAdminPageUrl %>"
    }
//-->
</script>
</head>
<body onLoad="setTimeout('delayer()', 1)">
<h2>Opening Central Admin Page...</h2>
<p>You are about to be redirected to <a href="<%=centralAdminPageUrl %>">SPChainGang page</a> in Central Administration</p>

</body>
</html>